<div class="topimg">
  <img align="center" src="/images/review.jpg"/>
</div>
<div class="review">
  <div class="content">
    <div class="left">
      <% cache :part=>"newest_review" do %>
        <%=render :partial=>"reviews/newest_review" %>
      <% end %>
    </div>
    <div class="right review_list">
      <dl>
        <dt> <b><%=@review.title %></b>&nbsp;  --<b>留言人:</b><%=h @review.user.login %> <b>回复数:</b>  <%=h @review.comments_count %>
          <b>发表时间:</b>  <%=@review.created_at.strftime("%Y-%m-%d") %>
          <p>
            <%=h @review.content %>
          </p>
          <% for item in @review.comments -%>
            <dd><p><%=h item.review_content %></p>
              <p class="text-right">回复人：<%=item.user.login %>&nbsp;回复时间：<%=item.created_at.strftime("%Y-%m-%d") %></p>
            </dd>
          <% end -%>
        </dt>
      </dl>
     
      <div class="search">
        <h3>留言回复：</h3>
        <% form_for(@comment,:url=>review_comments_path(@review.id) ) do |f| %>
          <%= f.error_messages %>
          <p>
            <%= f.text_area :review_content %>*
          </p>
         <p class="center"><%= image_submit_tag "review_back.png" %></p>
        <% end %>
      </div>
    </div>
  </div>
</div>
<%=render :partial=>"products/sub_menu",:object=>2 %>


